package edu.cuit.zhuyimeng.aircraft.api.controller;

import edu.cuit.zhuyimeng.framework.common.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 管理员控制器API
 */
@FeignClient(value = "aircraft-service",contextId = "aircraft-update",path = "/admin")
public interface AircraftUpdateApiController {

    /**
     * 锁定飞机
     */
    @PostMapping("/aircraft/lock")
    CommonResult<Void> lockAircraft(@RequestParam("id") Long id);

    /**
     * 解锁飞机
     */
    @PostMapping("/aircraft/unlock")
    CommonResult<Void> unlockAircraft(@RequestParam("id") Long id);

}
